package com.automannn.atm_back.modules.quartz.service;

import com.automannn.atm_back.modules.quartz.entity.QuartzJob;
import com.baomidou.mybatisplus.extension.service.IService;
import org.quartz.SchedulerException;

import java.util.List;

/**
 * @author chenkh
 * @time 2020/6/26 12:58
 */
public interface IQuartzJobService extends IService<QuartzJob> {
    List<QuartzJob> findByJobClassName(String jobClassName);

    boolean saveAndScheduleJob(QuartzJob quartzJob);

    boolean editAndScheduleJob(QuartzJob quartzJob) throws SchedulerException;

    boolean deleteAndStopJob(QuartzJob quartzJob);

    boolean resumeJob(QuartzJob quartzJob);

}
